﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Entities.IRepository
{
    public interface ISachBaoRepository
    {
		Sach TimSachTheoMa(string MaSB);
        Bao TimBaoTheoMa(string MaSB);
        TapChi TimTapChiTheoMa(string MaSB);
		List<SachBao> LayTatCa();
		bool ThemSach(Sach _sach);
		bool ThemBao(Bao _Bao);
		bool ThemTapChi(TapChi _TapChi);
		bool SuaThongTinSach(Sach _Sach);
		bool SuaThongTinBao(Bao _Bao);
		bool SuaThongTinTapChi(TapChi _TapChi);
		bool XoaSach(Sach _sach);
		bool XoaSach(Expression<Func<Sach, bool>> predicate);
		bool XoaBao(Bao _bao);
		bool XoaBao(Expression<Func<Bao, bool>> predicate);
		bool XoaTapChi(TapChi _bao);
		bool XoaTapChi(Expression<Func<TapChi, bool>> predicate);
		T GetData<T>(string query, bool isStoredProc);
    }
}
